namespace NewOperatorExample
{
public workflow Factory
{
public static workspace MyCoolSpace
{
get;
private set;
}
// static constructor
Factory()
{
MyCoolSpace = new workspace("MyCoolSpace") at root;
}
// A method that creates a workflow object.
public Workflow CreateMyFlow()
{
// the new operator creates a new instance
// of a the class 'Flow' in the workspace 'MyCoolSpace'
return new Flow() in Factory.MyCoolSpace;
}
}
//this is a simple workflow that doesn't do much.
public workflow Flow
{
// code for the workflow should be place here
}
}